Skip to content

Conversation

k-fish
Copy link
Member

@k-fish k-fish commented Oct 3, 2025

This adds a small project badge to log rows so users can tell which project a log line is from at a glance when looking at multiple projects.

Other:

  • This memoizes project badge as we shouldn't be rerendering ~2-5ms components when none of the props change, this especially hurts log table performance as hundreds of lines can be rendered at once.

Closes LOGS-385

This adds a small project badge to log rows so users can tell which project a log line is from at a glance when looking at multiple projects.

Other:
- This memoizes project badge as we shouldn't be rerendering ~2-5ms components when none of the props change, this especially hurts log table performance as hundreds of lines can be rendered at once.
@k-fish k-fish requested a review from a team as a code owner October 3, 2025 19:50
Copy link

linear bot commented Oct 3, 2025

@k-fish k-fish requested a review from a team October 3, 2025 19:50
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 3, 2025
});
const projectId: (typeof AlwaysPresentLogFields)[1] =
dataRow[OurLogKnownFieldKey.PROJECT_ID];
const project = projects.projects.find(p => p.id === '' + projectId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Project Badge Rendering Issue

Replacing useProjectFromId with a lookup in useProjects().projects could prevent project badges from rendering. This happens if useProjects() doesn't include all visible projects, or due to a type mismatch when comparing p.id with projectId.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants